package com.example.aics.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.aics.assistant.McpAssistant;
import jakarta.annotation.Resource;
import reactor.core.publisher.Flux;

/** 
 * MCP控制器
*/
@RestController
@RequestMapping("/mcp")
public class MCPController {

    @Resource
    private McpAssistant assistant;

    @RequestMapping("/mapChat")
    public Flux<String> mapChat(@RequestParam("message") String question) {
        return assistant.chat(question);
    }
}
